package com.woniu.aimd.service.impl;

import com.woniu.aimd.pojo.entity.Wronganswerquestion;
import com.woniu.aimd.mapper.MyWAnswerQMapper;
import com.woniu.aimd.service.MyWAnswerQ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MyWAnswerQImpl implements MyWAnswerQ {
    @Autowired
    MyWAnswerQMapper myWAnswerQMapper;
    @Override
    public List<Wronganswerquestion> MyWAnswerQ(String user_id, Integer status) {
        return myWAnswerQMapper.selectmyanswerquestion(user_id,status);
    }

    @Override
    public void deleteMyWAnswerQ(int id) {
        myWAnswerQMapper.deletemyanswerquestion(id);
    }
}
